/*
 * @(#)ServiceBO.java $version 2013-3-1
 * 
 * Copyright 2013 NADO Group. All rights Reserved.
 * NADO PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.nado.iims2.community.bo;

import java.util.List;

import com.nado.extensions.util.DataMap;
import com.nado.iims2.community.model.ServiceModel;
import com.nado.iims2.community.model.SubServiceModel;

/**
 * The Class ServiceBO.
 * 
 * @author nado
 */
public interface ServiceBO {
	/**
	 * Gets service list.
	 * 
	 * @return
	 */
	List<DataMap> getServiceList();
	/**
	 * Gets service detail.
	 * 
	 * @param serviceNo
	 * @return
	 */
	DataMap getServiceDetail(int serviceNo);
	/**
	 * Gets service list total.
	 * 
	 * @return
	 */
	int getServiceListCount();
	/**
	 * Write service info.
	 * 
	 * @param model
	 * @return
	 */
	int writeService(ServiceModel model);
	/**
	 * Remove service info.
	 * 
	 * @param model
	 * @return
	 */
	int removeService(ServiceModel model);
	
	/**
	 * Gets sub-service list.
	 * 
	 * @param serviceNo
	 * @return
	 */
	List<DataMap> getSubServiceList(int serviceNo);
	/**
	 * Gets sub-service detail.
	 * 
	 * @param serviceNo
	 * @param subNo
	 * @return
	 */
	DataMap getSubServiceDetail(int serviceNo, int subNo);
	/**
	 * Gets sub-service list total.
	 * 
	 * @param serviceNo
	 * @return
	 */
	int getSubServiceListCount(int serviceNo);
	/**
	 * Write sub-service info.
	 * 
	 * @param model
	 * @return
	 */
	int writeSubService(ServiceModel model);
	/**
	 * Remove sub-service info.
	 * 
	 * @param model
	 * @return
	 */
	int removeSubService(SubServiceModel model);
}
